package com.luohoufa.ms.product.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "减少库存输入实体类")
@Data
public class DecreaseStockInput {
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private String productId;
    /**
     * 商品数量
     */
    @ApiModelProperty(value = "需要减少的商品数量")
    private Integer productQuantity;

    public DecreaseStockInput(String productId, Integer productQuantity) {
        this.productId = productId;
        this.productQuantity = productQuantity;
    }

    public DecreaseStockInput() {
    }
}
